package y2015.day_09.计算机;

public class MyAdapter implements IMobileStorage {
    private NewStorage s;

    public MyAdapter(NewStorage s) {
        this.s = s;
    }

    @Override
    public void writeData(byte[] data) {
        s.write(data);
    }

    @Override
    public byte[] readData() {
        return s.read();
    }

}

